package com.demo.boss.models;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PageRequest {
    @NotNull(message = "页号不能空")
    @Min(value = 1,message = "页号从1开始")
    private Integer pageNo;
    @NotNull(message = "页大小不能空")
    @Min(value = 1,message = "每页最少从10开始")
    private Integer PageSize;
}
